a=0
while a<=9:
    b=1
    while b<=a:
        print(f"{a}*{b}={a*b} ",end='')
        b=b+1
    print()
    a=a+1
